/* Preloading bar */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: #08c2b8; /* Matches your --bg-color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Stays above everything */
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    color: white;
    width: 300px;
}

.loader-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
}

#loader-bar {
    width: 0%;
    height: 100%;
    background: white;
    box-shadow: 0 0 10px white;
    /* Simulated animation until the page is actually ready */
    animation: loading-sim 2s forwards ease-in-out;
}

@keyframes loading-sim {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 90%; } /* Pauses at 90% until page loads */
}

#loader-percentage {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
    font-variant-numeric: tabular-nums; /* Prevents text jumping */
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}
